//导入所需的react和react-dom
// import React from 'react'
import ReactDOM from 'react-dom/client'
//引入csss
import  './index.css'
//创建虚拟DOM
//在JSX中的class属性应该className
const containerEle=<div className='box'>
    <h1>Hello React</h1>
</div>
// const h1Ele=React.createElement('h1',{key:1},"Hello React!")
// const containerEle=React.createElement('div',{key:2,className:'box'},h1Ele)
//渲染虚拟DOM
const root=ReactDOM.createRoot(document.getElementById('root'))
root.render(containerEle)